package com.water.wfo.user.ability.impl;

import com.water.wfo.sys.pojo.entity.RoleMenuRelEntity;
import com.water.wfo.user.ability.RoleMenuRelAbility;
import com.water.wfo.user.mapper.RoleMenuRelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 角色菜单表 服务实现类
 * </p>
 *
 * @author water&7
 * @since 2024-07-24
 */
@Component
public class RoleMenuRelAbilityImpl implements RoleMenuRelAbility {

    @Autowired
    private RoleMenuRelMapper roleMenuRelMapper;

    @Override
    public int insert(RoleMenuRelEntity entity) {
        return roleMenuRelMapper.insert(entity);
    }

    @Override
    public int update(RoleMenuRelEntity entity) {
        return roleMenuRelMapper.update(entity);
    }

    @Override
    public List<RoleMenuRelEntity> queryRoleMenuRelEntityBy(RoleMenuRelEntity entity) {
        return roleMenuRelMapper.queryRoleMenuRelEntityBy(entity);
    }
}
